﻿<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
    <ns prefix="identity" uri="urn:hl7-ru:identity"/>
    <ns prefix="address" uri="urn:hl7-ru:address"/>
    <ns prefix="PII" uri="urn:hl7-ru:PII"/>
    <ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
    <ns prefix="fias" uri="urn:hl7-ru:fias"/>
    <pattern>
        <rule context="//addr[not(@nullFlavor)]|//value[@xsi:type='AD'][not(@nullFlavor)]">
            <assert test="count(streetAddressLine)=1">У1-2. Элемент addr и value[@xsi:type='AD'] должен иметь 1 элемент streetAddressLine.</assert>
            <assert test="count(address:stateCode)=1">У1-2. Элемент addr и value[@xsi:type='AD'] должен иметь 1 элемент address:stateCode.</assert>
            <assert test="address:stateCode/@xsi:type='CD'">У1-2. Элемент addr/address:stateCode и value[@xsi:type='AD']/address:stateCode должен иметь значение атрибута @xsi:type равное 'CD'.</assert>
            <assert test="address:stateCode/@codeSystem=['1.2.643.5.1.13.13.99.2.206','1.2.643.5.1.13.13.11.1093']">У1-2. Элемент addr/address:stateCode и value[@xsi:type='AD']/address:stateCode должен иметь значение атрибута @codeSystem равное '1.2.643.5.1.13.13.99.2.206' или '1.2.643.5.1.13.13.11.1093'.</assert>
            <assert test="address:stateCode/@codeSystemName!=''">У1-2. Элемент addr/address:stateCode и value[@xsi:type='AD']/address:stateCode должен иметь не пустое значение атрибута @codeSystemName.</assert>
            <assert test="address:stateCode/@codeSystemVersion!=''">У1-2. Элемент addr/address:stateCode и value[@xsi:type='AD']/address:stateCode должен иметь не пустое значение атрибута @codeSystemVersion.</assert>
            <assert test="address:stateCode/@displayName!=''">У1-2. Элемент addr/address:stateCode и value[@xsi:type='AD']/address:stateCode должен иметь не пустое значение атрибута @displayName.</assert>
            <report test="address:stateCode/@nullFlavor!=''">У1-2. Элемент addr/address:stateCode и value[@xsi:type='AD']/address:stateCode не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(postalCode)=1">У1-2. Элемент addr и value[@xsi:type='AD'] должен иметь 1 элемент postalCode.</assert>
            <assert test="count(fias:Address)=1">У1-2. Элемент addr и value[@xsi:type='AD'] должен иметь 1 элемент fias:Address.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="//addr/streetAddressLine|//value[@xsi:type='AD']/streetAddressLine">
            <assert test=".!=''">У1-2. Элемент addr/streetAddressLine и value[@xsi:type='AD']/streetAddressLine должен иметь не пустое значение.</assert>
            <report test="@nullFlavor!=''">У1-2. Элемент addr/streetAddressLine и value[@xsi:type='AD']/streetAddressLine должен иметь не пустое значение атрибута @displayName.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="//addr/postalCode[not(@nullFlavor)]|//value[@xsi:type='AD']/postalCode[not(@nullFlavor)]">
            <assert test="matches(.,'^[0-9]{6}$')">У1-2. Элемент addr/postalCode и value[@xsi:type='AD']/postalCode должен иметь синтаксически корректное значение, соответствующее почтовому индексу: должно состоять из 6 цифр без разделителей.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="//addr[fias:Address[not(@nullFlavor)]]|//value[@xsi:type='AD'][fias:Address[not(@nullFlavor)]]">
            <assert test="count(fias:Address/fias:AOGUID)=1">У1-2. Элемент addr/fias:Address и value[@xsi:type='AD']/fias:Address должен иметь 1 элемент fias:AOGUID.</assert>
            <assert test="count(fias:Address/fias:HOUSEGUID)=1">У1-2. Элемент addr/fias:Address и value[@xsi:type='AD']/fias:Address должен иметь 1 элемент fias:HOUSEGUID.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="//addr[fias:Address/fias:AOGUID]|//value[@xsi:type='AD'][fias:Address/fias:AOGUID]">
            <assert test="fias:Address/fias:AOGUID!=''">У1-2. Элемент addr/fias:Address/fias:AOGUID и value[@xsi:type='AD']/fias:Address/fias:AOGUID должен иметь не пустое значение.</assert>
            <report test="fias:Address/fias:AOGUID/@nullFlavor">У1-2. Элемент addr/fias:Address/fias:AOGUID и value[@xsi:type='AD']/fias:Address/fias:AOGUID не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="//addr[fias:Address/fias:HOUSEGUID[not(@nullFlavor)]]|//value[@xsi:type='AD'][fias:Address/fias:HOUSEGUID[not(@nullFlavor)]]">
            <assert test="fias:Address/fias:HOUSEGUID!=''">У1-2. Элемент addr/fias:Address/fias:HOUSEGUID и value[@xsi:type='AD']/fias:Address/fias:HOUSEGUID должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="//id[@root='1.2.643.100.3']">
            <assert test="matches(@extension,'^([0-9]{3}[-\s]{0,1}){3}[0-9]{2}$')">Extra. Элемент //id[@root='1.2.643.100.3'] должен иметь синтаксически корректное значение атрибута @extension, соответствующее СНИЛС: должно состоять из 11 цифр, цифры могут группироваться по 3+3+3+2, между группами может ставиться пробел или тире.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/realmCode">
            <assert test="@code='RU'">У1-4. Элемент ClinicalDocument/realmCode должен иметь  значение атрибута @code, равное 'RU'.</assert>
            <report test="@nullFlavor">У1-4. Элемент ClinicalDocument/realmCode не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/typeId">
            <assert test="@root='2.16.840.1.113883.1.3'">У1-5. Элемент ClinicalDocument/typeId должен иметь  значение атрибута @root, равное '2.16.840.1.113883.1.3'.</assert>
            <assert test="@extension='POCD_MT000040'">У1-5. Элемент ClinicalDocument/typeId должен иметь  значение атрибута @extension, равное 'POCD_MT000040'.</assert>
            <report test="@nullFlavor">У1-5. Элемент ClinicalDocument/typeId не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/templateId">
            <assert test="@root='1.2.643.5.1.13.13.14.14.9.3'">У1-6. Элемент ClinicalDocument[code/@code='14']/templateId должен иметь  значение атрибута @root, равное '1.2.643.5.1.13.13.14.14.9.3'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/templateId">
            <assert test="@root='1.2.643.5.1.13.13.14.354.9.3'">У1-6. Элемент ClinicalDocument[code/@code='354']/templateId должен иметь  значение атрибута @root, равное '1.2.643.5.1.13.13.14.354.9.3'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/templateId">
            <report test="@nullFlavor">У1-6. Элемент ClinicalDocument/templateId не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(id)=1">У1-7. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) id.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/id">
            <assert test="matches(@root,'([0-2])([.]([1-9][0-9]*|0))+')">У1-7. Элемент ClinicalDocument/id должен иметь значение атрибута @root, соответствующее регулярному выражению '([0-2])([.]([1-9][0-9]*|0))+'.</assert>
            <assert test="@extension!=''">У1-7. Элемент ClinicalDocument/id должен иметь не пустое значение атрибута @extension.</assert>
            <report test="@nullFlavor">У1-7. Элемент ClinicalDocument/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(code)=1">У1-8. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) code.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1522','1.2.643.5.1.13.2.1.1.646','1.2.643.5.1.13.13.11.1115','1.2.643.5.1.13.13.99.2.195']">У1-8. Элемент ClinicalDocument/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1522','1.2.643.5.1.13.2.1.1.646','1.2.643.5.1.13.13.11.1115','1.2.643.5.1.13.13.99.2.195'].</assert>
            <assert test="@code='354'">У1-8. Элемент ClinicalDocument/code должен иметь  значение атрибута @code, равное '354'.</assert>
            <assert test="@codeSystemVersion!=''">У1-8. Элемент ClinicalDocument/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-8. Элемент ClinicalDocument/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-8. Элемент ClinicalDocument/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У1-8. Элемент ClinicalDocument/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(title)=1">У1-9. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) title.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/title">
            <assert test=".!=''">У1-9. Элемент ClinicalDocument/title должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У1-9. Элемент ClinicalDocument/title не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(effectiveTime)=1">У1-10. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) effectiveTime.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/effectiveTime">
            <report test="@nullFlavor">У1-10. Элемент ClinicalDocument/effectiveTime не должен иметь атрибут @nullFlavor.</report>
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У1-10. Элемент ClinicalDocument/effectiveTime должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(confidentialityCode)=1">У1-12. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) confidentialityCode.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/confidentialityCode">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.285','1.2.643.5.1.13.2.1.1.1504.9','2.16.840.1.113883.2.35.10.9','1.2.643.5.1.13.13.11.1116']">У1-12. Элемент ClinicalDocument/confidentialityCode должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.285','1.2.643.5.1.13.2.1.1.1504.9','2.16.840.1.113883.2.35.10.9','1.2.643.5.1.13.13.11.1116'].</assert>
            <assert test="@code!=''">У1-12. Элемент ClinicalDocument/confidentialityCode должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У1-12. Элемент ClinicalDocument/confidentialityCode должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-12. Элемент ClinicalDocument/confidentialityCode должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-12. Элемент ClinicalDocument/confidentialityCode должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У1-12. Элемент ClinicalDocument/confidentialityCode не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(languageCode)=1">У1-13. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) languageCode.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/languageCode">
            <assert test="@code='ru-RU'">У1-13. Элемент ClinicalDocument/languageCode должен иметь  значение атрибута @code, равное 'ru-RU'.</assert>
            <report test="@nullFlavor">У1-13. Элемент ClinicalDocument/languageCode не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(setId)=1">У1-14. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) setId.</assert>
            <assert test="count(versionNumber)=1">У1-14. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) versionNumber.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/setId">
            <assert test="@extension!=''">У1-14. Элемент ClinicalDocument/setId должен иметь не пустое значение атрибута @extension.</assert>
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-14. Элемент ClinicalDocument/setId должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <report test="@nullFlavor">У1-14. Элемент ClinicalDocument/setId не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[id/@root][setId/@root]">
            <report test="matches(id/@root,setId/@root)">У1-14. Элемент ClinicalDocument/setId должен иметь значение атрибута @root отличающееся от значения атрибута @root элемента ClinicalDocument/id.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/versionNumber">
            <assert test="@value!=''">У1-14. Элемент ClinicalDocument/versionNumber должен иметь непустое значение атрибута @value.</assert>
            <report test="@nullFlavor">У1-14. Элемент ClinicalDocument/versionNumber не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(recordTarget)=1">У1-15. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) recordTarget.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget">
            <assert test="count(patientRole)=1">У1-15. Элемент ClinicalDocument/recordTarget должен иметь 1 элемент(а/ов) patientRole.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole">
            <assert test="count(id)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole должен иметь 1 элемент(а/ов) id.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(patient)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole должен иметь 1 элемент(а/ов) patient.</assert>
            <assert test="count(providerOrganization)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole должен иметь 1 элемент(а/ов) providerOrganization.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/id">
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/id не должен иметь атрибут @nullFlavor.</report>
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+\.100([.]([1-9][0-9]*|0))+\.10$') or (@root='1.2.643.5.1.13.13.12.2.77.8511.10')">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/id должен иметь значение атрибута @root, соответствующее регулярному выражению  '^[0-2](\.([1-9][0-9]*|0))+\.100([.]([1-9][0-9]*|0))+\.10$', '1.2.643.5.1.13.13.12.2.77.8511.10'.</assert>
            <assert test="@extension!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/id должен иметь не пустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient">
            <assert test="count(name)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient должен иметь 1 элемент(а/ов) name.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(administrativeGenderCode)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient должен иметь 1 элемент(а/ов) administrativeGenderCode.</assert>
            <assert test="count(birthTime)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient должен иметь 1 элемент(а/ов) birthTime.</assert>
            <assert test="count(birthplace)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient должен иметь 1 элемент(а/ов) birthplace.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/name">
            <assert test="count(family)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/name должен иметь 1 элемент(а/ов) family.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/name/family[@nullFlavor]">
            <assert test="@nullFlavor=['NA','ASKU']">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/name/family[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное ['NA','ASKU'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1040','1.2.643.5.1.13.2.1.1.156']">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1040','1.2.643.5.1.13.2.1.1.156'].</assert>
            <assert test="@code!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/administrativeGenderCode не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/birthTime">
            <assert test="matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthTime должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthTime не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/birthplace">
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthplace не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(place)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthplace должен иметь 1 элемент(а/ов) place.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/birthplace/place[not(@nullFlavor)]">
            <assert test="count(addr)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthplace/place должен иметь 1 элемент(а/ов) addr.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/birthplace/place[@nullFlavor]">
            <assert test="@nullFlavor='UNK'">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthplace/place[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/patient/birthplace/place/addr">
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/patient/birthplace/place/addr не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/providerOrganization">
            <assert test="count(id)=2">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization должен иметь 2 элемент(а/ов) id.</assert>
            <assert test="count(name)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization должен иметь 1 элемент(а/ов) name.</assert>
            <assert test="count(addr)=1">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization должен иметь 1 элемент(а/ов) addr.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/providerOrganization/id[1]">
            <assert test="@root!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/id[1] должен иметь непустое значение атрибута @root.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/id[1] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/providerOrganization/id[1][@extension]">
            <assert test="@extension!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/id[1][@extension] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/providerOrganization/id[2][not(@nullFlavor)]">
            <assert test="@root='1.2.643.5.1.13.2.1.1.1504.101'">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/id[2] должен иметь  значение атрибута @root, равное '1.2.643.5.1.13.2.1.1.1504.101'.</assert>
            <assert test="@extension!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/id[2] должен иметь непустое значение атрибута @extension.</assert>
            <assert test="@assigningAuthorityName!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/id[2] должен иметь непустое значение атрибута @assigningAuthorityName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/providerOrganization/name">
            <assert test=".!=''">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/name должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/recordTarget/patientRole/providerOrganization/addr">
            <report test="@nullFlavor">У1-15. Элемент ClinicalDocument/recordTarget/patientRole/providerOrganization/addr не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(author)=1">У1-16. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) author.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author">
            <assert test="count(time)=1">У1-16. Элемент ClinicalDocument/author должен иметь 1 элемент(а/ов) time.</assert>
            <assert test="count(assignedAuthor)=1">У1-16. Элемент ClinicalDocument/author должен иметь 1 элемент(а/ов) assignedAuthor.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/author/time">
            <assert test="@nullFlavor='NI'">У1-16. Элемент ClinicalDocument[code/@code='14']/author/time должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/author/time[not(@nullFlavor)]">
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У1-16. Элемент ClinicalDocument[code/@code='354']/author/time[not(@nullFlavor)] должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/author/time[@nullFlavor]">
            <assert test="@nullFlavor='NI'">У1-16. Элемент ClinicalDocument[code/@code='354']/author/time[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor">
            <assert test="count(id)=2">У1-16. Элемент ClinicalDocument/author/assignedAuthor должен иметь 2 элемент(а/ов) id.</assert>
            <assert test="count(code)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(addr)&lt;=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor должен иметь не более 1 элемент(а/ов) addr.</assert>
            <assert test="count(assignedPerson)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor должен иметь 1 элемент(а/ов) assignedPerson.</assert>
            <assert test="count(representedOrganization)&lt;=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor должен иметь не более 1 элемент(а/ов) representedOrganization.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/id[1][not(@nullFlavor)]">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-16. Элемент ClinicalDocument/author/assignedAuthor/id[1] должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <assert test="@extension!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/id[1][not(@nullFlavor)] должен иметь не пустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/id[1][@nullFlavor]">
            <assert test="@nullFlavor='NA'">У1-16. Элемент ClinicalDocument/author/assignedAuthor/id[1][@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/id[2]">
            <assert test="@root='1.2.643.100.3'">У1-16. Элемент ClinicalDocument/author/assignedAuthor/id[2] должен иметь значение атрибута @root равное '1.2.643.100.3'.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/id[2] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/code">
            <assert test="@codeSystem='1.2.643.5.1.13.13.99.2.700'">У1-16. Элемент ClinicalDocument/author/assignedAuthor/code должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.99.2.700'.</assert>
            <assert test="@code!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/code должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/addr">
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/addr не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/assignedPerson">
            <assert test="count(name)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson должен иметь 1 элемент(а/ов) name.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/assignedPerson/name">
            <assert test="count(family)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name должен иметь 1 элемент(а/ов) family.</assert>
            <assert test="count(given)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name должен иметь 1 элемент(а/ов) given.</assert>
            <assert test="count(identity:Patronymic)&lt;=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name должен иметь не более 1 элемент(а/ов) identity:Patronymic</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/assignedPerson/name/family">
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name/family не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name/family должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/assignedPerson/name/given">
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name/given не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name/given должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/assignedPerson/name/identity:Patronymic">
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name/identity:Patronymic не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-16. Элемент ClinicalDocument/author/assignedAuthor/assignedPerson/name/identity:Patronymic должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/representedOrganization">
            <assert test="count(id)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/representedOrganization должен иметь 1 элемент(а/ов) id.</assert>
            <assert test="count(name)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/representedOrganization должен иметь 1 элемент(а/ов) name.</assert>
            <assert test="count(addr)=1">У1-16. Элемент ClinicalDocument/author/assignedAuthor/representedOrganization должен иметь 1 элемент(а/ов) addr.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/representedOrganization не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/author/assignedAuthor/representedOrganization/id">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-16. Элемент ClinicalDocument/author/assignedAuthor/representedOrganization/id должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <report test="@nullFlavor">У1-16. Элемент ClinicalDocument/author/assignedAuthor/representedOrganization/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(custodian)=1">У1-17. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) custodian.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/custodian">
            <assert test="count(assignedCustodian)=1">У1-17. Элемент ClinicalDocument/custodian должен иметь 1 элемент(а/ов) assignedCustodian.</assert>
            <report test="@nullFlavor">У1-17. Элемент ClinicalDocument/custodian не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/custodian/assignedCustodian">
            <assert test="count(representedCustodianOrganization)=1">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian должен иметь 1 элемент(а/ов) representedCustodianOrganization.</assert>
            <report test="@nullFlavor">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization">
            <assert test="count(id)=1">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization должен иметь 1 элемент(а/ов) id.</assert>
            <report test="@nullFlavor">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(name)=1">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization должен иметь 1 элемент(а/ов) name.</assert>
            <assert test="count(telecom)&lt;=1">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization должен иметь не более 1 элемент(а/ов) telecom.</assert>
            <assert test="count(addr)=1">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization должен иметь 1 элемент(а/ов) addr.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/id">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/id должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <report test="@nullFlavor">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/id[@extension]">
            <assert test="@extension!=''">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/id[@extension] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/name">
            <assert test=".!=''">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/name должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У1-17. Элемент ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(informationRecipient)=1">У1-18. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) informationRecipient.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/informationRecipient">
            <assert test="count(intendedRecipient)=1">У1-18. Элемент ClinicalDocument/informationRecipient должен иметь 1 элемент(а/ов) intendedRecipient.</assert>
            <report test="@nullFlavor">У1-18. Элемент ClinicalDocument/informationRecipient не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/informationRecipient/intendedRecipient">
            <assert test="count(receivedOrganization)=1">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient должен иметь 1 элемент(а/ов) receivedOrganization.</assert>
            <report test="@nullFlavor">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization">
            <assert test="count(id)=1">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization должен иметь 1 элемент(а/ов) id.</assert>
            <assert test="count(name)=1">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization должен иметь 1 элемент(а/ов) name.</assert>
            <report test="@nullFlavor">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization/id">
            <report test="@nullFlavor">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization/name">
            <assert test=".!=''">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization/name должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У1-18. Элемент ClinicalDocument/informationRecipient/intendedRecipient/receivedOrganization/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(legalAuthenticator)=1">У1-19. Элемент ClinicalDocument должен иметь 1 элемент(а/ов) legalAuthenticator.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator">
            <assert test="count(time)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator должен иметь 1 элемент(а/ов) time.</assert>
            <assert test="count(signatureCode)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator должен иметь 1 элемент(а/ов) signatureCode.</assert>
            <assert test="count(assignedEntity)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator должен иметь 1 элемент(а/ов) assignedEntity.</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/legalAuthenticator/time">
            <assert test="@nullFlavor='NI'">У1-19. Элемент ClinicalDocument[code/@code='14']/legalAuthenticator/time должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/legalAuthenticator/time[not(@nullFlavor)]">
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У1-19. Элемент ClinicalDocument[code/@code='354']/legalAuthenticator/time[not(@nullFlavor)] должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/legalAuthenticator/time[@nullFlavor]">
            <assert test="@nullFlavor='NI'">У1-19. Элемент ClinicalDocument[code/@code='354']/legalAuthenticator/time[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/signatureCode">
            <assert test="@nullFlavor='NI'">У1-19. Элемент ClinicalDocument/legalAuthenticator/signatureCode должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity">
            <assert test="count(id)=2">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity должен иметь 2 элемент(а/ов) id.</assert>
            <assert test="count(code)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(addr)&lt;=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity должен иметь не более 1 элемент(а/ов) addr.</assert>
            <assert test="count(assignedPerson)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity должен иметь 1 элемент(а/ов) assignedPerson.</assert>
            <assert test="count(representedOrganization)&lt;=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity должен иметь не более 1 элемент(а/ов) representedOrganization.</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/id[1][not(@nullFlavor)]">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/id[1] должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <assert test="@extension!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/id[1][not(@nullFlavor)] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/id[1][@nullFlavor]">
            <assert test="@nullFlavor='NA'">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/id[1][@nullFlavor] должен иметь значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/id[2]">
            <assert test="@root='1.2.643.100.3'">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/id[2] должен иметь значение атрибута @root равное '1.2.643.100.3'.</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/id[2] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/code">
            <assert test="@codeSystem='1.2.643.5.1.13.13.99.2.700'">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/code должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.99.2.700'.</assert>
            <assert test="@code!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/code должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/addr">
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/addr не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson">
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(name)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson должен иметь 1 элемент(а/ов) name.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name">
            <assert test="count(family)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name должен иметь 1 элемент(а/ов) family.</assert>
            <assert test="count(given)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name должен иметь 1 элемент(а/ов) given.</assert>
            <assert test="count(identity:Patronymic)&lt;=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name должен иметь не более 1 элемент(а/ов) identity:Patronymic</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/family">
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/family не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/family должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/given">
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/given не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/given должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/identity:Patronymic">
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/identity:Patronymic не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/identity:Patronymic должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization">
            <assert test="count(id)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization должен иметь 1 элемент(а/ов) id.</assert>
            <assert test="count(name)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization должен иметь 1 элемент(а/ов) name.</assert>
            <assert test="count(addr)=1">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization должен иметь 1 элемент(а/ов) addr.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/id">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/id должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/id[@extension]">
            <assert test="@extension!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/id[@extension] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/name">
            <assert test=".!=''">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/name должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У1-19. Элемент ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(authenticator)&lt;=1">У1-20. Элемент ClinicalDocument должен иметь не более 1 элемент(а/ов) authenticator.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator">
            <assert test="count(time)=1">У1-20. Элемент ClinicalDocument/authenticator должен иметь 1 элемент(а/ов) time.</assert>
            <assert test="count(assignedEntity)=1">У1-20. Элемент ClinicalDocument/authenticator должен иметь 1 элемент(а/ов) assignedEntity.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(signatureCode)=1">У1-20. Элемент ClinicalDocument/authenticator должен иметь 1 элемент(а/ов) signatureCode.</assert>
            <assert test="count(assignedEntity)=1">У1-20. Элемент ClinicalDocument/authenticator должен иметь 1 элемент(а/ов) assignedEntity.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/authenticator/time">
            <assert test="@nullFlavor='NI'">У1-20. Элемент ClinicalDocument[code/@code='14']/authenticator/time должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/authenticator/time[not(@nullFlavor)]">
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У1-20. Элемент ClinicalDocument[code/@code='354']/authenticator/time[not(@nullFlavor)] должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/authenticator/time[@nullFlavor]">
            <assert test="@nullFlavor='NI'">У1-20. Элемент ClinicalDocument[code/@code='354']/authenticator/time[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/signatureCode">
            <assert test="@nullFlavor='NI'">У1-20. Элемент ClinicalDocument/authenticator/signatureCode должен иметь  значение атрибута @nullFlavor, равное 'NI'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity">
            <assert test="count(id)=2">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity должен иметь 2 элемент(а/ов) id.</assert>
            <assert test="count(code)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(addr)&lt;=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity должен иметь не более 1 элемент(а/ов) addr.</assert>
            <assert test="count(assignedPerson)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity должен иметь 1 элемент(а/ов) assignedPerson.</assert>
            <assert test="count(representedOrganization)&lt;=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity должен иметь не более 1 элемент(а/ов) representedOrganization.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/id[1]">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/id[1] должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/id[1][not(@nullFlavor)]">
            <assert test="@extension!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/id[1][not(@nullFlavor)] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/id[1][@nullFlavor]">
            <assert test="@nullFlavor='NA'">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/id[1][@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/id[2]">
            <assert test="@root='1.2.643.100.3'">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/id[2] должен иметь значение атрибута @root равное '1.2.643.100.3'.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/id[2] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/code[not(@nullFlavor)]">
            <assert test="@codeSystem='1.2.643.5.1.13.13.99.2.700'">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/code должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.99.2.700'.</assert>
            <assert test="@code!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/code должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/code должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/addr">
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/addr не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/assignedPerson">
            <assert test="count(name)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson должен иметь 1 элемент(а/ов) name.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/assignedPerson/name">
            <assert test="count(family)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name должен иметь 1 элемент(а/ов) family.</assert>
            <assert test="count(given)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name должен иметь 1 элемент(а/ов) given.</assert>
            <assert test="count(identity:Patronymic)&lt;=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name должен иметь не более 1 элемент(а/ов) identity:Patronymic</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/family">
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/family не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/family должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/given">
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/given не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/given должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/identity:Patronymic">
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/identity:Patronymic не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/assignedPerson/name/identity:Patronymic должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/representedOrganization">
            <assert test="count(id)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization должен иметь 1 элемент(а/ов) id.</assert>
            <assert test="count(name)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization должен иметь 1 элемент(а/ов) name.</assert>
            <assert test="count(addr)=1">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization должен иметь 1 элемент(а/ов) addr.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/representedOrganization/id">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization/id должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/representedOrganization/id[@extension]">
            <assert test="@extension!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization/id[@extension] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/authenticator/assignedEntity/representedOrganization/name">
            <assert test=".!=''">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization/name должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У1-20. Элемент ClinicalDocument/authenticator/assignedEntity/representedOrganization/name не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument">
            <assert test="count(participant)&lt;=1">У1-21. Элемент ClinicalDocument должен иметь не более 1 элемент(а/ов) participant.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant">
            <assert test="@typeCode='IRCP'">У1-21. Элемент ClinicalDocument/participant должен иметь  значение атрибута @typeCode, равное 'IRCP'.</assert>
            <assert test="count(associatedEntity)=1">У1-21. Элемент ClinicalDocument/participant должен иметь 1 элемент(а/ов) associatedEntity.</assert>
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity">
            <assert test="@classCode=['PRS','AGNT']">У1-21. Элемент ClinicalDocument/participant/associatedEntity должен иметь  значение атрибута @classCode, равное 'PRS' или 'AGNT'.</assert>
            <assert test="count(id)&lt;=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity должен иметь не более 1 элемент(а/ов) id.</assert>
            <assert test="count(code)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(identity:IdentityDoc)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity должен иметь 1 элемент(а/ов) identity:IdentityDoc.</assert>
            <assert test="count(addr)&lt;=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity должен иметь не более 1 элемент(а/ов) addr.</assert>
            <assert test="count(associatedPerson)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity должен иметь 1 элемент(а/ов) associatedPerson.</assert>
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/id">
            <assert test="@root='1.2.643.100.3'">У1-21. Элемент ClinicalDocument/participant/associatedEntity/id должен иметь значение атрибута @root равное '1.2.643.100.3'.</assert>
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/id не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.14','1.2.643.5.1.13.2.1.1.1504.40']">У1-21. Элемент ClinicalDocument/participant/associatedEntity/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.14','1.2.643.5.1.13.2.1.1.1504.40'].</assert>
            <assert test="@code!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/code должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity[identity:IdentityDoc]">
            <report test="identity:IdentityDoc/@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(identity:IdentityDoc/identity:IdentityCardTypeId)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь 1 элемент(а/ов) identity:IdentityCardTypeId.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@xsi:type='CD'">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:IdentityCardTypeId/@xsi:type, равное 'CD'.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@codeSystem=['1.2.643.5.1.13.13.99.2.48','1.2.643.5.1.13.13.11.1011','1.2.643.5.1.13.2.1.1.736']">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:IdentityCardTypeId/@codeSystem, равное ['1.2.643.5.1.13.13.99.2.48','1.2.643.5.1.13.13.11.1011','1.2.643.5.1.13.2.1.1.736'].</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@code!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь непустое значение атрибута identity:IdentityCardTypeId/@code.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@codeSystemName!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь непустое значение атрибута identity:IdentityCardTypeId/@codeSystemName.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@displayName!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь непустое значение атрибута identity:IdentityCardTypeId/@displayName.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@codeSystemVersion!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь непустое значение атрибута identity:IdentityCardTypeId/@codeSystemVersion.</assert>
            <report test="identity:IdentityDoc/identity:IdentityCardTypeId/@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(identity:IdentityDoc/identity:Series)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь 1 элемент(а/ов) identity:Series.</assert>
            <assert test="identity:IdentityDoc/identity:Series/@xsi:type='ST'">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:Series/@xsi:type, равное 'ST'.</assert>
            <assert test="count(identity:IdentityDoc/identity:Number)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь 1 элемент(а/ов) identity:Number.</assert>
            <assert test="identity:IdentityDoc/identity:Number/@xsi:type='ST'">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:Number/@xsi:type, равное 'ST'.</assert>
            <report test="identity:IdentityDoc/identity:Number/@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(identity:IdentityDoc/identity:IssueOrgName)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь 1 элемент(а/ов) identity:IssueOrgName.</assert>
            <assert test="identity:IdentityDoc/identity:IssueOrgName/@xsi:type='ST'">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:IssueOrgName/@xsi:type, равное 'ST'.</assert>
            <assert test="count(identity:IdentityDoc/identity:IssueDate)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь 1 элемент(а/ов) identity:IssueDate.</assert>
            <assert test="identity:IdentityDoc/identity:IssueDate/@xsi:type='TS'">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:IssueDate/@xsi:type, равное 'TS'.</assert>
            <report test="identity:IdentityDoc/identity:IssueDate/@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] не должен иметь атрибут @nullFlavor.</report>
            <assert test="identity:IdentityDoc/identity:IssueDate/@value!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь непустое значение атрибута identity:IssueDate/@value.</assert>
            <assert test="count(identity:IdentityDoc/identity:IssueOrgCode)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь 1 элемент(а/ов) identity:IssueOrgCode.</assert>
            <assert test="identity:IdentityDoc/identity:IssueOrgCode/@xsi:type='ST'">У1-21. Элемент ClinicalDocument/participant/associatedEntity[identity:IdentityDoc] должен иметь  значение атрибута identity:IssueOrgCode/@xsi:type, равное 'ST'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/addr">
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(address:Type)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь 1 элемент(а/ов) address:Type.</assert>
            <assert test="address:Type/@xsi:type='CD'">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь  значение атрибута address:Type/@xsi:type, равное 'CD'.</assert>
            <assert test="address:Type/@codeSystem='1.2.643.5.1.13.13.11.1504'">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь  значение атрибута address:Type/@codeSystem, равное '1.2.643.5.1.13.13.11.1504'.</assert>
            <assert test="address:Type/@codeSystemName!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь непустое значение атрибута address:Type/@codeSystemName.</assert>
            <assert test="address:Type/@code!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь непустое значение атрибута address:Type/@code.</assert>
            <assert test="address:Type/@displayName!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь непустое значение атрибута address:Type/@displayName.</assert>
            <assert test="address:Type/@codeSystemVersion!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/addr должен иметь непустое значение атрибута address:Type/@codeSystemVersion.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/associatedPerson">
            <assert test="count(name)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson должен иметь 1 элемент(а/ов) name.</assert>
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/associatedPerson/name">
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(family)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name должен иметь 1 элемент(а/ов) family.</assert>
            <assert test="count(given)=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name должен иметь 1 элемент(а/ов) given.</assert>
            <assert test="count(identity:Patronymic)&lt;=1">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name должен иметь не более 1 элемент(а/ов) identity:Patronymic</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/associatedPerson/name/family">
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name/family не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name/family должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/associatedPerson/name/given">
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name/given не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name/given должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/participant/associatedEntity/associatedPerson/name/identity:Patronymic">
            <report test="@nullFlavor">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name/identity:Patronymic не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У1-21. Элемент ClinicalDocument/participant/associatedEntity/associatedPerson/name/identity:Patronymic должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component">
            <assert test="count(structuredBody)=1">У1-22. Элемент ClinicalDocument/component должен иметь 1 элемент(а/ов) structuredBody.</assert>
            <report test="@nullFlavor">У1-22. Элемент ClinicalDocument/component не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody">
            <assert test="count(component/section/code[@code='DOCINFO'])=1">У2-2. Элемент ClinicalDocument/component/structuredBody должен иметь 1 элемент(а/ов) component/section/code[@code='DOCINFO'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(title)=1">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) title.</assert>
            <assert test="count(text)=1">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) text.</assert>
            <assert test="count(code)=1">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) code.</assert>
            <report test="@nullFlavor">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379']">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379'].</assert>
            <assert test="@code='DOCINFO'">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/code должен иметь  значение атрибута @code, равное 'DOCINFO'.</assert>
            <report test="@nullFlavor">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/title">
            <assert test=".!=''">У2-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/title должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody">
            <assert test="count(component/section/code[@code='MOTHINFO'])=1">У2-3. Элемент ClinicalDocument/component/structuredBody должен иметь 1 элемент(а/ов) component/section/code[@code='MOTHINFO'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(title)=1">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) title.</assert>
            <assert test="count(text)=1">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) text.</assert>
            <assert test="count(code)=1">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) code.</assert>
            <report test="@nullFlavor">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379']">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379'].</assert>
            <assert test="@code='MOTHINFO'">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/code должен иметь  значение атрибута @code, равное 'MOTHINFO'.</assert>
            <report test="@nullFlavor">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/title">
            <assert test=".!=''">У2-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/title должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody">
            <assert test="count(component/section/code[@code='LABODELI'])=1">У2-4. Элемент ClinicalDocument/component/structuredBody должен иметь 1 элемент(а/ов) component/section/code[@code='LABODELI'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']">
            <assert test="count(title)=1">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI'] должен иметь 1 элемент(а/ов) title.</assert>
            <assert test="count(text)=1">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI'] должен иметь 1 элемент(а/ов) text.</assert>
            <assert test="count(code)=1">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI'] должен иметь 1 элемент(а/ов) code.</assert>
            <report test="@nullFlavor">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379']">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379'].</assert>
            <assert test="@code='LABODELI'">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/code должен иметь  значение атрибута @code, равное 'LABODELI'.</assert>
            <report test="@nullFlavor">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/title">
            <assert test=".!=''">У2-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/title должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody">
            <assert test="count(component/section/code[@code='DEADPATINFO'])=1">У2-5. Элемент ClinicalDocument/component/structuredBody должен иметь 1 элемент(а/ов) component/section/code[@code='DEADPATINFO'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(title)=1">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) title.</assert>
            <assert test="count(text)=1">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) text.</assert>
            <assert test="count(code)=1">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) code.</assert>
            <report test="@nullFlavor">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379']">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379'].</assert>
            <assert test="@code='DEADPATINFO'">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/code должен иметь  значение атрибута @code, равное 'DEADPATINFO'.</assert>
            <report test="@nullFlavor">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/title">
            <assert test=".!=''">У2-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/title должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody">
            <assert test="count(component/section/code[@code='ORGINFO'])=1">У2-6. Элемент ClinicalDocument/component/structuredBody должен иметь 1 элемент(а/ов) component/section/code[@code='ORGINFO'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']">
            <assert test="count(title)=1">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO'] должен иметь 1 элемент(а/ов) title.</assert>
            <assert test="count(text)=1">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO'] должен иметь 1 элемент(а/ов) text.</assert>
            <assert test="count(code)=1">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO'] должен иметь 1 элемент(а/ов) code.</assert>
            <report test="@nullFlavor">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379']">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379'].</assert>
            <assert test="@code='ORGINFO'">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/code должен иметь  значение атрибута @code, равное 'ORGINFO'.</assert>
            <report test="@nullFlavor">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/title">
            <assert test=".!=''">У2-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/title должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody">
            <assert test="count(component/section/code[@code='ABOUTDEAD'])=1">У2-7. Элемент ClinicalDocument/component/structuredBody должен иметь 1 элемент(а/ов) component/section/code[@code='ABOUTDEAD'].</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(title)=1">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) title.</assert>
            <assert test="count(text)=1">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) text.</assert>
            <assert test="count(code)=1">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) code.</assert>
            <report test="@nullFlavor">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379']">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.197','1.2.643.5.1.13.2.1.1.1504.23','1.2.643.5.1.13.13.11.1379'].</assert>
            <assert test="@code='ABOUTDEAD'">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/code должен иметь  значение атрибута @code, равное 'ABOUTDEAD'.</assert>
            <report test="@nullFlavor">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/title">
            <assert test=".!=''">У2-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/title должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='5003'])=1">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5003'].</assert>
            <report test="@nullFlavor">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(entry/observation/code[@code='5004'])=1">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5004'].</assert>
            <report test="@nullFlavor">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5003']">
            <assert test="count(observation)=1">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5003'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5003'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5003']">
            <assert test="@classCode='OBS'">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5003'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5003'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5003'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5003'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5003'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5003'">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003'] должен иметь  значение атрибута @code, равное '5003'.</assert>
            <assert test="@codeSystemVersion!=''">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5003'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5003']]/value">
            <assert test=".!=''">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5003']]/value должен иметь не пустое значение.</assert>
            <assert test="matches(.,'^[0-9]{2}$')">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5003']]/value должен иметь значение соответствующее регулярному выражению '^[0-9]{2}$'.</assert>
            <assert test="@xsi:type='ST'">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5003']]/value должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
            <report test="@nullFlavor">У3-1. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5003']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5004']">
            <assert test="count(observation)=1">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5004'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5004'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5004']">
            <assert test="@classCode='OBS'">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5004'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5004'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5004'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5004'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5004'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5004'">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004'] должен иметь  значение атрибута @code, равное '5004'.</assert>
            <assert test="@codeSystemVersion!=''">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5004'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value">
            <assert test=".!=''">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value должен иметь не пустое значение.</assert>
            <assert test="matches(.,'^[3|4]{1}[0-9]{8}$')">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value должен иметь значение соответствующее регулярному выражению '^[3|4]{1}[0-9]{8}$'.</assert>
            <assert test="@xsi:type='ST'">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
            <report test="@nullFlavor">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value">
            <assert test="matches(.,'^[3]{1}')">У3-2. Элемент ClinicalDocument[code/@code='14']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value должен иметь значение соответствующее регулярному выражению '^[3]{1}'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value">
            <assert test="matches(.,'^[4]{1}')">У3-2. Элемент ClinicalDocument[code/@code='354']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5004']]/value должен иметь значение соответствующее регулярному выражению '^[4]{1}'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='114'])=1">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='114'].</assert>
            <report test="@nullFlavor">У3-2. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='114']">
            <assert test="count(observation)=1">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='114'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='114'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='114']">
            <assert test="@classCode='OBS'">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='114'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='114'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='114'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='114'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='114'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='114'">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114'] должен иметь  значение атрибута @code, равное '114'.</assert>
            <assert test="@codeSystemVersion!=''">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='114'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='114']]/value[not(@nullFlavor)]">
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У3-3. Элемент ClinicalDocument[code/@code='354']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='114']]/value[not(@nullFlavor)] должен иметь значение атрибута value соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='114']]/value">
            <assert test="@xsi:type='TS'">У3-3. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='114']]/value должен иметь  значение атрибута @xsi:type, равное 'TS'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='114']]/value[@nullFlavor]">
            <assert test="@nullFlavor='NA'">У3-3. Элемент ClinicalDocument[code/@code='14']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='114']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='511'])=1">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='511'].</assert>
            <report test="@nullFlavor">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='511']">
            <assert test="count(observation)=1">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='511'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='511'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='511']">
            <assert test="@classCode='OBS'">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='511'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='511'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='511'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='511'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='511'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='511'">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511'] должен иметь  значение атрибута @code, равное '511'.</assert>
            <assert test="@codeSystemVersion!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='511'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value">
            <assert test="@xsi:type='CD'">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.19','1.2.643.5.1.13.2.1.1.1504.60']">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.19','1.2.643.5.1.13.2.1.1.1504.60'].</assert>
            <assert test="@code!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-4. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='511']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='5005'])=1">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5005'].</assert>
            <report test="@nullFlavor">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5005']">
            <assert test="count(observation)=1">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5005'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5005'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5005']">
            <assert test="@classCode='OBS'">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5005'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5005'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5005'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5005'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5005'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5005'">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005'] должен иметь  значение атрибута @code, равное '5005'.</assert>
            <assert test="@codeSystemVersion!=''">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5005'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5005']]/value">
            <assert test="@xsi:type='ST'">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5005']]/value должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5005']]/value[not(@nullFlavor)]">
            <assert test=".!=''">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5005']]/value[not(@nullFlavor)] должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5005']]/value">
            <report test="@nullFlavor">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5005']]/value не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5005']]/value должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5005']]/value">
            <assert test="@nullFlavor='NA'">У3-5. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5005']]/value должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='5006'])=1">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5006'].</assert>
            <report test="@nullFlavor">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5006']">
            <assert test="count(observation)=1">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5006'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5006'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5006']">
            <assert test="@classCode='OBS'">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5006'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5006'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5006'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5006'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5006'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5006'">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006'] должен иметь  значение атрибута @code, равное '5006'.</assert>
            <assert test="@codeSystemVersion!=''">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5006'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5006']]/value">
            <assert test="@xsi:type='ST'">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5006']]/value должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5006']]/value[not(@nullFlavor)]">
            <assert test=".!=''">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5006']]/value[not(@nullFlavor)] должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5006']]/value">
            <report test="@nullFlavor">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5006']]/value не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5006']]/value должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5006']]/value">
            <assert test="@nullFlavor='NA'">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5006']]/value должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5005']]/value">
            <assert test="@nullFlavor='NA'">У3-6. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5005']]/value должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='5007'])=1">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5007'].</assert>
            <report test="@nullFlavor">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5007']">
            <assert test="count(observation)=1">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5007'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='5007'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5007']">
            <assert test="@classCode='OBS'">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5007'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5007'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5007'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5007'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='5007'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5007'">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007'] должен иметь  значение атрибута @code, равное '5007'.</assert>
            <assert test="@codeSystemVersion!=''">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='5007'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5007']]/value">
            <assert test="@xsi:type='TS'">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='5007']]/value должен иметь  значение атрибута @xsi:type, равное 'TS'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5007']]/value">
            <report test="@nullFlavor">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5007']]/value не должен иметь атрибут @nullFlavor.</report>
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(.,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(.,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['3','4']]/entry/observation[code[@code='5007']]/value должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5007']]/value[@nullFlavor]">
            <assert test="@nullFlavor='NA'">У3-7. Элемент ClinicalDocument/component/structuredBody/component/section[1][entry/observation[code[@code='511']]/value/@code=['1','2']]/entry/observation[code[@code='5007']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='12484'])=1">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='12484'].</assert>
            <report test="@nullFlavor">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='12484']">
            <assert test="count(observation)=1">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='12484'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='12484'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12484']">
            <assert test="@classCode='OBS'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12484'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12484'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12484'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(reference)=1">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12484'] должен иметь 1 элемент(а/ов) reference.</assert>
            <report test="@nullFlavor">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12484'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='12484'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484'] должен иметь  значение атрибута @code, равное '12484'.</assert>
            <assert test="@codeSystemVersion!=''">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12484'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference">
            <assert test="@typeCode='REFR'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference должен иметь  значение атрибута @typeCode, равное 'REFR'.</assert>
            <report test="@nullFlavor">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(externalDocument)=1">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference должен иметь 1 элемент(а/ов) externalDocument.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument">
            <assert test="@classCode='DOCCLIN'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument должен иметь  значение атрибута @classCode, равное 'DOCCLIN'.</assert>
            <assert test="@moodCode='EVN'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <report test="@nullFlavor">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(id)=1">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument должен иметь 1 элемент(а/ов) id.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument/id[not(@nullFlavor)]">
            <assert test="@root='1.2.643.5.1.13.13.17.1.1'">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument/id[not(@nullFlavor)] должен иметь  значение атрибута @root, равное '1.2.643.5.1.13.13.17.1.1'.</assert>
            <assert test="matches(@extension,'^[0-9]{2}[.][0-9]{2}[.][0-9]{3,4}[.][0-9]{9}$')">У3-8. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12484']]/reference/externalDocument/id[not(@nullFlavor)] должен иметь значение атрибута @extension, соответствующее регулярному выражению '^[0-9]{2}[.][0-9]{2}[.][0-9]{34}[.][0-9]{9}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='12135'])=1">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='12135'].</assert>
            <report test="@nullFlavor">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='12135']">
            <assert test="count(observation)=1">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='12135'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='12135'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12135']">
            <assert test="@classCode='OBS'">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12135'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12135'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12135'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12135'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='12135'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='12135'">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135'] должен иметь  значение атрибута @code, равное '12135'.</assert>
            <assert test="@codeSystemVersion!=''">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='12135'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value">
            <assert test="@xsi:type='BL'">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value должен иметь  значение атрибута @xsi:type, равное 'BL'.</assert>
            <report test="@nullFlavor">У3-9. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='354']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value">
            <assert test="@value='false'">У3-9. Элемент ClinicalDocument[code/@code='354']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value должен иметь  значение атрибута @value, равное 'false'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument[code/@code='14']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value">
            <assert test="@value='true'">У3-9. Элемент ClinicalDocument[code/@code='14']/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='12135']]/value должен иметь  значение атрибута @value, равное 'true'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']">
            <assert test="count(entry/observation/code[@code='6082'])=1">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='6082'].</assert>
            <report test="@nullFlavor">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='6082']">
            <assert test="count(observation)=1">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='6082'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry[observation/code/@code='6082'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='6082']">
            <assert test="@classCode='OBS'">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='6082'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='6082'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='6082'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='6082'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code/@code='6082'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='6082'">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082'] должен иметь  значение атрибута @code, равное '6082'.</assert>
            <assert test="@codeSystemVersion!=''">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation/code[@code='6082'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='6082']]/value">
            <assert test=".!=''">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='6082']]/value должен иметь значение равное '5103837 5'.</assert>
            <assert test="@xsi:type='ST'">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='6082']]/value должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
            <report test="@nullFlavor">У3-10. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DOCINFO']/entry/observation[code[@code='6082']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(subject/relatedSubject/code[@code='1'])=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) subject/relatedSubject/code[@code='1'].</assert>
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject">
            <assert test="count(relatedSubject)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject должен иметь 1 элемент(а/ов) relatedSubject.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject">
            <assert test="@classCode='PRS'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject должен иметь  значение атрибута @classCode, равное 'PRS'.</assert>
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(identity:id)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject должен иметь 1 элемент(а/ов) identity:id.</assert>
            <assert test="count(identity:IdentityDoc)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject должен иметь 1 элемент(а/ов) identity:IdentityDoc.</assert>
            <assert test="count(code)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(addr)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject должен иметь 1 элемент(а/ов) addr.</assert>
            <assert test="count(subject)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject должен иметь 1 элемент(а/ов) subject.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:id[not(@nullFlavor)]]">
            <assert test="identity:id/@root='1.2.643.100.3'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:id[not(@nullFlavor)]] должен иметь  значение атрибута @root, равное '1.2.643.100.3'.</assert>
            <assert test="matches(identity:id/@extension,'^([0-9]{3}[-\s]{0,1}){3}[0-9]{2}$')">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:id[not(@nullFlavor)]] должен иметь синтаксически корректное значение атрибута @extension, соответствующее СНИЛС: должно состоять из 11 цифр, цифры могут группироваться по 3+3+3+2, между группами может ставиться пробел или тире.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]]">
            <assert test="count(identity:IdentityDoc/identity:IdentityCardTypeId)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]] должен иметь 1 элемент(а/ов) identity:IdentityDoc/identity:IdentityCardTypeId.</assert>
            <assert test="count(identity:IdentityDoc/identity:Series)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]] должен иметь 1 элемент(а/ов) identity:IdentityDoc/identity:Series.</assert>
            <assert test="count(identity:IdentityDoc/identity:Number)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]] должен иметь 1 элемент(а/ов) identity:IdentityDoc/identity:Number.</assert>
            <assert test="count(identity:IdentityDoc/identity:IssueOrgName)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]] должен иметь 1 элемент(а/ов) identity:IdentityDoc/identity:IssueOrgName.</assert>
            <assert test="count(identity:IdentityDoc/identity:IssueOrgCode)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]] должен иметь 1 элемент(а/ов) identity:IdentityDoc/identity:IssueOrgCode.</assert>
            <assert test="count(identity:IdentityDoc/identity:IssueDate)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc[not(@nullFlavor)]] должен иметь 1 элемент(а/ов) identity:IdentityDoc/identity:IssueDate.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject[identity:IdentityDoc/identity:IdentityCardTypeId]">
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@xsi:type='CD'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@codeSystem=['1.2.643.5.1.13.13.99.2.48','1.2.643.5.1.13.13.11.1011','1.2.643.5.1.13.2.1.1.736']">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.48','1.2.643.5.1.13.13.11.1011','1.2.643.5.1.13.2.1.1.736'].</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@code!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId должен иметь непустое значение атрибута @code.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@codeSystemVersion!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@codeSystemName!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="identity:IdentityDoc/identity:IdentityCardTypeId/@displayName!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId должен иметь непустое значение атрибута @displayName.</assert>
            <report test="identity:IdentityDoc/identity:IdentityCardTypeId/@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IdentityCardTypeId не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:Series[not(@nullFlavor)]">
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:Series[not(@nullFlavor)] должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:Number">
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:Number должен иметь не пустое значение.</assert>
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:Number не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueOrgName[not(@nullFlavor)]">
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueOrgName[not(@nullFlavor)] должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueOrgCode[not(@nullFlavor)]">
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueOrgCode[not(@nullFlavor)] должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueDate">
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueDate не должен иметь атрибут @nullFlavor.</report>
            <assert test="@xsi:type='TS'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueDate должен иметь  значение атрибута @xsi:type, равное 'TS'.</assert>
            <assert test="@value!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/identity:IdentityDoc/identity:IssueDate должен иметь непустое значение атрибута @value.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code">
            <assert test="@codeSystem!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code должен иметь непустое значение атрибута @codeSystem.</assert>
            <assert test="@code='1'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code должен иметь  значение атрибута @code, равное '1'.</assert>
            <assert test="@codeSystemVersion!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject">
            <assert test="count(name)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject должен иметь 1 элемент(а/ов) name.</assert>
            <assert test="count(birthTime)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject должен иметь 1 элемент(а/ов) birthTime.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[@nullFlavor]">
            <assert test="@nullFlavor='UNK'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]">
            <assert test="count(family)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)] должен иметь 1 элемент(а/ов) family.</assert>
            <assert test="count(given)=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)] должен иметь 1 элемент(а/ов) given.</assert>
            <assert test="count(identity:Patronymic)&lt;=1">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)] должен иметь не более 1 элемент(а/ов) identity:Patronymic</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/family">
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/family не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/family должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/given">
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/given не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/given должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/identity:Patronymic">
            <report test="@nullFlavor">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/identity:Patronymic не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/name[not(@nullFlavor)]/identity:Patronymic должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/birthTime[not(@nullFlavor)]">
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}$') or matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/birthTime[not(@nullFlavor)] должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/birthTime[@nullFlavor]">
            <assert test="@nullFlavor='UNK'">У3-11. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/subject/relatedSubject/subject/birthTime[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(entry/observation/code[@code='250'])=1">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='250'].</assert>
            <report test="@nullFlavor">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='250']">
            <assert test="count(observation)=1">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='250'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='250'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='250']">
            <assert test="@classCode='OBS'">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='250'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='250'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='250'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='250'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='250'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='250'">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250'] должен иметь  значение атрибута @code, равное '250'.</assert>
            <assert test="@codeSystemVersion!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='250'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)]">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1042','1.2.643.5.1.13.2.1.1.573']">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1042','1.2.643.5.1.13.2.1.1.573'].</assert>
            <assert test="@xsi:type='CD'">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-12. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='250']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(entry/observation/code[@code='260'])=1">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='260'].</assert>
            <report test="@nullFlavor">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='260']">
            <assert test="count(observation)=1">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='260'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='260'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='260']">
            <assert test="@classCode='OBS'">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='260'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='260'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='260'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='260'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='260'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='260'">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260'] должен иметь  значение атрибута @code, равное '260'.</assert>
            <assert test="@codeSystemVersion!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='260'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.15','1.2.643.5.1.13.2.1.1.1504.6201']">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.15','1.2.643.5.1.13.2.1.1.1504.6201'].</assert>
            <assert test="@xsi:type='CD'">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-13. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='260']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(entry/observation/code[@code='270'])=1">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='270'].</assert>
            <report test="@nullFlavor">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='270']">
            <assert test="count(observation)=1">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='270'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='270'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='270']">
            <assert test="@classCode='OBS'">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='270'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='270'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='270'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='270'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='270'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='270'">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270'] должен иметь  значение атрибута @code, равное '270'.</assert>
            <assert test="@codeSystemVersion!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='270'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.16','1.2.643.5.1.13.2.1.1.1504.62']">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.16','1.2.643.5.1.13.2.1.1.1504.62'].</assert>
            <assert test="@xsi:type='CD'">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-14. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='270']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(entry/observation/code[@code='280'])=1">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='280'].</assert>
            <report test="@nullFlavor">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='280']">
            <assert test="count(observation)=1">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='280'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='280'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='280']">
            <assert test="@classCode='OBS'">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='280'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='280'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='280'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='280'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='280'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='280'">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280'] должен иметь  значение атрибута @code, равное '280'.</assert>
            <assert test="@codeSystemVersion!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='280'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value">
            <assert test="@codeSystem='1.2.643.5.1.13.13.11.1038'">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.11.1038'.</assert>
            <assert test="@xsi:type='CD'">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-15. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='280']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']">
            <assert test="count(entry/observation/code[@code='5010'])=1">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5010'].</assert>
            <report test="@nullFlavor">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='5010']">
            <assert test="count(observation)=1">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='5010'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry[observation/code/@code='5010'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='5010']">
            <assert test="@classCode='OBS'">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='5010'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='5010'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='5010'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='5010'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code/@code='5010'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5010'">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010'] должен иметь  значение атрибута @code, равное '5010'.</assert>
            <assert test="@codeSystemVersion!=''">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation/code[@code='5010'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='5010']]/value[not(@nullFlavor)]">
            <assert test=".!=''">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='5010']]/value[not(@nullFlavor)] должен иметь не пустое значение.</assert>
            <assert test="@xsi:type='ST'">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='5010']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='5010']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-16. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='MOTHINFO']/entry/observation[code[@code='5010']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']">
            <assert test="count(entry/observation/code[@code='6018'])=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='6018'].</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry[observation/code/@code='6018']">
            <assert test="count(observation)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry[observation/code/@code='6018'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry[observation/code/@code='6018'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']">
            <assert test="@classCode='OBS'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(performer/assignedEntity)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь 1 элемент(а/ов) performer/assignedEntity.</assert>
            <assert test="count(entryRelationship[1])=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь 1 элемент(а/ов) entryRelationship[1].</assert>
            <assert test="count(entryRelationship[2])=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь 1 элемент(а/ов) entryRelationship[2].</assert>
            <assert test="count(entryRelationship[3])=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] должен иметь 1 элемент(а/ов) entryRelationship[3].</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='6018'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018'] должен иметь  значение атрибута @code, равное '6018'.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation/code[@code='6018'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)]">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1070','1.2.643.5.1.13.2.1.1.473']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1070','1.2.643.5.1.13.2.1.1.473'].</assert>
            <assert test="@xsi:type='CD'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[@nullFlavor]">
            <assert test="@nullFlavor='NA'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code[@code='6018']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity">
            <assert test="count(id)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity должен иметь 1 элемент(а/ов) id.</assert>
            <assert test="count(code)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(assignedPerson)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity должен иметь 1 элемент(а/ов) assignedPerson.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/id[not(@nullFlavor)]">
            <assert test="matches(@root,'^[0-2](\.([1-9][0-9]*|0))+$')">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/id[not(@nullFlavor)] должен иметь значение атрибута @root, соответствующее регулярному выражению '^[0-2](\.([1-9][0-9]*|0))+$'.</assert>
            <assert test="@extension!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/id[not(@nullFlavor)] должен иметь непустое значение атрибута @extension.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/id[@nullFlavor]">
            <assert test="@nullFlavor='NA'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/id[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.32','1.2.643.5.1.13.2.1.1.1504.45']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.32','1.2.643.5.1.13.2.1.1.1504.45'].</assert>
            <assert test="@code!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]">
            <assert test="count(name)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)] должен иметь 1 элемент(а/ов) name.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name">
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name не должен иметь атрибут @nullFlavor.</report>
            <assert test="count(family)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name должен иметь 1 элемент(а/ов) family.</assert>
            <assert test="count(given)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name должен иметь 1 элемент(а/ов) given.</assert>
            <assert test="count(identity:Patronymic)&lt;=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name должен иметь не более 1 элемент(а/ов) identity:Patronymic</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/family">
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/family не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/family должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/given">
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/given не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/given должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/identity:Patronymic">
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/identity:Patronymic не должен иметь атрибут @nullFlavor.</report>
            <assert test=".!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/performer/assignedEntity/assignedPerson[not(@nullFlavor)]/name/identity:Patronymic должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]">
            <assert test="count(observation)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1] должен иметь 1 элемент(а/ов) observation.</assert>
            <assert test="@typeCode='COMP'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1] должен иметь  значение атрибута @typeCode, равное 'COMP'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation">
            <assert test="@classCode='OBS'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="count(code)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="@moodCode='EVN'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(value)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation должен иметь 1 элемент(а/ов) value.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='300'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code должен иметь  значение атрибута @code, равное '300'.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)]">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.31','1.2.643.5.1.13.2.1.1.1504.44']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.31','1.2.643.5.1.13.2.1.1.1504.44'].</assert>
            <assert test="@xsi:type='CD'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[1]/observation/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]">
            <assert test="count(observation)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2] должен иметь 1 элемент(а/ов) observation.</assert>
            <assert test="@typeCode='COMP'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2] должен иметь  значение атрибута @typeCode, равное 'COMP'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation">
            <assert test="@classCode='OBS'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="count(code)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="@moodCode='EVN'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(value)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation должен иметь 1 элемент(а/ов) value.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5002'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code должен иметь  значение атрибута @code, равное '5002'.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/value[not(@nullFlavor)]">
            <assert test="@xsi:type='INT'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'INT'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[2]/observation/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]">
            <assert test="count(observation)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3] должен иметь 1 элемент(а/ов) observation.</assert>
            <assert test="@typeCode='COMP'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3] должен иметь  значение атрибута @typeCode, равное 'COMP'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation">
            <assert test="@classCode='OBS'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="count(code)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="@moodCode='EVN'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(value)=1">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation должен иметь 1 элемент(а/ов) value.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='310'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code должен иметь  значение атрибута @code, равное '310'.</assert>
            <assert test="@codeSystemVersion!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/code не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/value[not(@nullFlavor)]">
            <assert test="@xsi:type='INT'">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'INT'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-17. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='LABODELI']/entry/observation[code/@code='6018']/entryRelationship[3]/observation/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='5000'])=1">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5000'].</assert>
            <report test="@nullFlavor">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='5000']">
            <assert test="count(observation)=1">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='5000'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='5000'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5000']">
            <assert test="@classCode='OBS'">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5000'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5000'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5000'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5000'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5000'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5000'">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000'] должен иметь  значение атрибута @code, равное '5000'.</assert>
            <assert test="@codeSystemVersion!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5000'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)]">
            <assert test="@codeSystem='1.2.643.5.1.13.13.99.2.590'">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.99.2.590'.</assert>
            <assert test="@xsi:type='CD'">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@code!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU', 'UNK']">У3-18. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5000']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU', 'UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='370'])=1">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='370'].</assert>
            <report test="@nullFlavor">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='370']">
            <assert test="count(observation)=1">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='370'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='370'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='370']">
            <assert test="@classCode='OBS'">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='370'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='370'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='370'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='370'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='370'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='370'">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370'] должен иметь  значение атрибута @code, равное '370'.</assert>
            <assert test="@codeSystemVersion!=''">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='370'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='370']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='INT'">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='370']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'INT'.</assert>
            <assert test="@value!=''">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='370']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @value.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='370']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-19. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='370']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='380'])=1">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='380'].</assert>
            <report test="@nullFlavor">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='380']">
            <assert test="count(observation)=1">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='380'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='380'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='380']">
            <assert test="@classCode='OBS'">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='380'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='380'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='380'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='380'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='380'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='380'">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380'] должен иметь  значение атрибута @code, равное '380'.</assert>
            <assert test="@codeSystemVersion!=''">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='380'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='380']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='INT'">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='380']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'INT'.</assert>
            <assert test="@value!=''">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='380']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @value.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='380']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-20. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='380']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='410'])=1">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='410'].</assert>
            <report test="@nullFlavor">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='410']">
            <assert test="count(observation)=1">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='410'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='410'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='410']">
            <assert test="@classCode='OBS'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='410'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='410'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='410'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='410'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='410'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='410'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410'] должен иметь  значение атрибута @code, равное '410'.</assert>
            <assert test="@codeSystemVersion!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='410'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]">
            <assert test=".!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)] должен иметь не пустое значение.</assert>
            <assert test="@xsi:type='PQ'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'PQ'.</assert>
            <assert test="@value!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @value.</assert>
            <assert test="@unit='g'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)] должен иметь  значение атрибута @unit, равное 'g'.</assert>
            <assert test="count(translation)=1">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)] должен иметь 1 элемент(а/ов) translation.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1358','1.2.643.5.1.13.13.11.1031']">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1358','1.2.643.5.1.13.13.11.1031'].</assert>
            <assert test="@code='8'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation должен иметь  значение атрибута @code, равное '8'.</assert>
            <assert test="@codeSystemVersion!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName='г'">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation должен иметь  значение атрибута @displayName, равное 'г'.</assert>
            <assert test="@value!=''">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation должен иметь непустое значение атрибута @value.</assert>
            <report test="@nullFlavor">У3-21. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='410']]/value[not(@nullFlavor)]/translation не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='420'])=1">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='420'].</assert>
            <report test="@nullFlavor">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='420']">
            <assert test="count(observation)=1">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='420'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='420'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='420']">
            <assert test="@classCode='OBS'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='420'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='420'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='420'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='420'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='420'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='420'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420'] должен иметь  значение атрибута @code, равное '420'.</assert>
            <assert test="@codeSystemVersion!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='420'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]">
            <assert test=".!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)] должен иметь не пустое значение.</assert>
            <assert test="@xsi:type='PQ'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'PQ'.</assert>
            <assert test="@value!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @value.</assert>
            <assert test="@unit='cm'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)] должен иметь  значение атрибута @unit, равное 'cm'.</assert>
            <assert test="count(translation)=1">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)] должен иметь 1 элемент(а/ов) translation.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1358','1.2.643.5.1.13.13.11.1031']">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1358','1.2.643.5.1.13.13.11.1031'].</assert>
            <assert test="@code='3'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation должен иметь  значение атрибута @code, равное '3'.</assert>
            <assert test="@codeSystemVersion!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName='см'">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation должен иметь  значение атрибута @displayName, равное 'см'.</assert>
            <assert test="@value!=''">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation должен иметь непустое значение атрибута @value.</assert>
            <report test="@nullFlavor">У3-22. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='420']]/value[not(@nullFlavor)]/translation не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='521'])=1">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='521'].</assert>
            <report test="@nullFlavor">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='521']">
            <assert test="count(observation)=1">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='521'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='521'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='521']">
            <assert test="@classCode='OBS'">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='521'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='521'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='521'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='521'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='521'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='521'">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521'] должен иметь  значение атрибута @code, равное '521'.</assert>
            <assert test="@codeSystemVersion!=''">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='521'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='521']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='TS'">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='521']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'TS'.</assert>
            <assert test="matches(@value, '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$') or matches(@value,'^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$')">У3-23. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='521']]/value[not(@nullFlavor)] должен иметь значение атрибута @value, соответствующее регулярному выражению  '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$', или должен иметь значение атрибута @value, соответствующее регулярному выражению '^[1-2]{1}[0-9]{3}[0-1]{1}[0-9]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}[0-5]{1}[0-9]{1}[0-5]{1}[0-9]{1}\+[0-2]{1}[0-9]{1}[0-5]{1}[0]{1}$'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='531'])=1">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='531'].</assert>
            <report test="@nullFlavor">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='531']">
            <assert test="count(observation)=1">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='531'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='531'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='531']">
            <assert test="@classCode='OBS'">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='531'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='531'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='531'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='531'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='531'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='531'">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531'] должен иметь  значение атрибута @code, равное '531'.</assert>
            <assert test="@codeSystemVersion!=''">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='531'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='531']]/value">
            <assert test=".!=''">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='531']]/value должен иметь не пустое значение.</assert>
            <assert test="@xsi:type='AD'">У3-24. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='531']]/value должен иметь  значение атрибута @xsi:type, равное 'AD'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='541'])=1">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='541'].</assert>
            <report test="@nullFlavor">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='541']">
            <assert test="count(observation)=1">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='541'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='541'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='541']">
            <assert test="@classCode='OBS'">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='541'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='541'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='541'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='541'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='541'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='541'">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541'] должен иметь  значение атрибута @code, равное '541'.</assert>
            <assert test="@codeSystemVersion!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='541'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value">
            <assert test="@xsi:type='CD'">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.20','1.2.643.5.1.13.2.1.1.1504.61']">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.20','1.2.643.5.1.13.2.1.1.1504.61'].</assert>
            <assert test="@code!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-25. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='541']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='252'])=1">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='252'].</assert>
            <report test="@nullFlavor">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='252']">
            <assert test="count(observation)=1">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='252'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='252'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='252']">
            <assert test="@classCode='OBS'">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='252'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='252'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='252'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='252'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='252'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='252'">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252'] должен иметь  значение атрибута @code, равное '252'.</assert>
            <assert test="@codeSystemVersion!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='252'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='CD'">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1042','1.2.643.5.1.13.2.1.1.573']">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1042','1.2.643.5.1.13.2.1.1.573'].</assert>
            <assert test="@code!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-26. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='252']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']">
            <assert test="count(entry/observation/code[@code='5001'])=1">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5001'].</assert>
            <report test="@nullFlavor">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='5001']">
            <assert test="count(observation)=1">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='5001'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry[observation/code/@code='5001'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5001']">
            <assert test="@classCode='OBS'">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5001'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5001'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5001'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5001'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code/@code='5001'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5001'">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001'] должен иметь  значение атрибута @code, равное '5001'.</assert>
            <assert test="@codeSystemVersion!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation/code[@code='5001'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value">
            <assert test="@xsi:type='CD'">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem='1.2.643.5.1.13.13.99.2.589'">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.99.2.589'.</assert>
            <assert test="@code!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-27. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='DEADPATINFO']/entry/observation[code[@code='5001']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']">
            <assert test="count(entry/observation/code[@code='5008'])=1">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='5008'].</assert>
            <report test="@nullFlavor">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry[observation/code/@code='5008']">
            <assert test="count(observation)=1">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry[observation/code/@code='5008'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry[observation/code/@code='5008'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code/@code='5008']">
            <assert test="@classCode='OBS'">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code/@code='5008'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code/@code='5008'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code/@code='5008'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code/@code='5008'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code/@code='5008'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='5008'">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008'] должен иметь  значение атрибута @code, равное '5008'.</assert>
            <assert test="@codeSystemVersion!=''">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation/code[@code='5008'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code[@code='5008']]/value">
            <assert test=".!=''">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code[@code='5008']]/value должен иметь не пустое значение.</assert>
            <assert test="@xsi:type='ST'">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code[@code='5008']]/value должен иметь  значение атрибута @xsi:type, равное 'ST'.</assert>
            <report test="@nullFlavor">У3-28. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ORGINFO']/entry/observation[code[@code='5008']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='551'])=1">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='551'].</assert>
            <report test="@nullFlavor">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='551']">
            <assert test="count(observation)=1">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='551'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='551'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='551']">
            <assert test="@classCode='OBS'">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='551'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='551'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='551'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='551'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='551'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='551'">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551'] должен иметь  значение атрибута @code, равное '551'.</assert>
            <assert test="@codeSystemVersion!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='551'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value">
            <assert test="@xsi:type='CD'">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.21','1.2.643.5.1.13.2.1.1.1504.63']">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.21','1.2.643.5.1.13.2.1.1.1504.63'].</assert>
            <assert test="@code!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-29. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='551']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='571'])=1">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='571'].</assert>
            <report test="@nullFlavor">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='571']">
            <assert test="count(observation)=1">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='571'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='571'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='571']">
            <assert test="@classCode='OBS'">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='571'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='571'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='571'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='571'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='571'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='571'">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571'] должен иметь  значение атрибута @code, равное '571'.</assert>
            <assert test="@codeSystemVersion!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='571'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value">
            <assert test="@xsi:type='CD'">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.22','1.2.643.5.1.13.2.1.1.1504.64']">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.22','1.2.643.5.1.13.2.1.1.1504.64'].</assert>
            <assert test="@code!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-30. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='571']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='581'])=1">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='581'].</assert>
            <report test="@nullFlavor">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='581']">
            <assert test="count(observation)=1">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='581'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='581'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='581']">
            <assert test="@classCode='OBS'">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='581'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='581'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='581'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='581'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='581'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='581'">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581'] должен иметь  значение атрибута @code, равное '581'.</assert>
            <assert test="@codeSystemVersion!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='581'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value">
            <assert test="@xsi:type='CD'">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.23','1.2.643.5.1.13.2.1.1.1504.65']">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.23','1.2.643.5.1.13.2.1.1.1504.65'].</assert>
            <assert test="@code!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-31. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='581']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='4549'])=1">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='4549'].</assert>
            <report test="@nullFlavor">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4549']">
            <assert test="count(observation)=1">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4549'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4549'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4549']">
            <assert test="@classCode='OBS'">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4549'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4549'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4549'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4549'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4549'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='4549'">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549'] должен иметь  значение атрибута @code, равное '4549'.</assert>
            <assert test="@codeSystemVersion!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4549'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value">
            <assert test="@xsi:type='CD'">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem='1.2.643.5.1.13.13.11.1489'">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.11.1489'.</assert>
            <assert test="@code!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-32. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4549']]/value не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='4550'])>=1">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='4550'].</assert>
            <report test="@nullFlavor">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4550']">
            <assert test="count(observation)=1">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4550'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4550'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4550']">
            <assert test="@classCode='OBS'">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4550'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4550'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4550'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4550'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4550'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='4550'">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550'] должен иметь  значение атрибута @code, равное '4550'.</assert>
            <assert test="@codeSystemVersion!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4550'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='CD'">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem='1.2.643.5.1.13.13.11.1489'">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.11.1489'.</assert>
            <assert test="@code!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-33. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4550']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='4551'])=1">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='4551'].</assert>
            <report test="@nullFlavor">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4551']">
            <assert test="count(observation)=1">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4551'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4551'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4551']">
            <assert test="@classCode='OBS'">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4551'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4551'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4551'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4551'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4551'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='4551'">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551'] должен иметь  значение атрибута @code, равное '4551'.</assert>
            <assert test="@codeSystemVersion!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4551'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='CD'">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem='1.2.643.5.1.13.13.11.1489'">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.11.1489'.</assert>
            <assert test="@code!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['NA','UNK']">У3-34. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4551']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='4552'])>=1">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='4552'].</assert>
            <report test="@nullFlavor">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4552']">
            <assert test="count(observation)=1">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4552'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4552'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4552']">
            <assert test="@classCode='OBS'">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4552'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4552'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4552'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4552'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4552'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='4552'">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552'] должен иметь  значение атрибута @code, равное '4552'.</assert>
            <assert test="@codeSystemVersion!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4552'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='CD'">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem='1.2.643.5.1.13.13.11.1489'">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное '1.2.643.5.1.13.13.11.1489'.</assert>
            <assert test="@code!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['NA','UNK']">У3-35. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4552']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']">
            <assert test="count(entry/observation/code[@code='4553'])>=1">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] должен иметь 1 элемент(а/ов) entry/observation/code[@code='4553'].</assert>
            <report test="@nullFlavor">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4553']">
            <assert test="count(observation)=1">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4553'] должен иметь 1 элемент(а/ов) observation.</assert>
            <report test="@nullFlavor">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry[observation/code/@code='4553'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553']">
            <assert test="@classCode='OBS'">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553'] должен иметь  значение атрибута @classCode, равное 'OBS'.</assert>
            <assert test="@moodCode='EVN'">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553'] должен иметь  значение атрибута @moodCode, равное 'EVN'.</assert>
            <assert test="count(code)=1">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553'] должен иметь 1 элемент(а/ов) code.</assert>
            <assert test="count(value)=1">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553'] должен иметь 1 элемент(а/ов) value.</assert>
            <report test="@nullFlavor">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553']">
            <assert test="@codeSystem=['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380']">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553'] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.99.2.166','1.2.643.5.1.13.2.1.1.1504.41', '1.2.643.5.1.13.13.11.1380'].</assert>
            <assert test="@code='4553'">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553'] должен иметь  значение атрибута @code, равное '4553'.</assert>
            <assert test="@codeSystemVersion!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553'] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553'] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553'] должен иметь непустое значение атрибута @displayName.</assert>
            <report test="@nullFlavor">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation/code[@code='4553'] не должен иметь атрибут @nullFlavor.</report>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)]">
            <assert test="@xsi:type='CD'">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)] должен иметь  значение атрибута @xsi:type, равное 'CD'.</assert>
            <assert test="@codeSystem=['1.2.643.5.1.13.13.11.1489','1.2.643.5.1.13.13.99.2.692','1.2.643.5.1.13.13.11.1114','1.2.643.5.1.13.2.1.1.1504.5','2.16.840.1.113883.5.1008']">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)] должен иметь  значение атрибута @codeSystem, равное ['1.2.643.5.1.13.13.11.1489','1.2.643.5.1.13.13.99.2.692','1.2.643.5.1.13.13.11.1114','1.2.643.5.1.13.2.1.1.1504.5','2.16.840.1.113883.5.1008'].</assert>
            <assert test="@code!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @code.</assert>
            <assert test="@codeSystemVersion!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemVersion.</assert>
            <assert test="@codeSystemName!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @codeSystemName.</assert>
            <assert test="@displayName!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[not(@nullFlavor)] должен иметь непустое значение атрибута @displayName.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[@nullFlavor]">
            <assert test="@nullFlavor=['ASKU','NA','UNK']">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']]/value[@nullFlavor] должен иметь  значение атрибута @nullFlavor, равное 'ASKU','NA','UNK'.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']][value[@nullFlavor=['ASKU','NA','UNK']]]">
            <assert test="count(text)&lt;=1">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code/@code='4553'] может иметь не более 1 элемент(а/ов) text.</assert>
        </rule>
    </pattern>
    <pattern>
        <rule context="ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']][value[@nullFlavor=['ASKU','NA','UNK']]]/text">
            <assert test=".!=''">У3-36. Элемент ClinicalDocument/component/structuredBody/component/section[code/@code='ABOUTDEAD']/entry/observation[code[@code='4553']][value[@nullFlavor=['ASKU','NA','UNK']]]/text должен иметь не пустое значение.</assert>
        </rule>
    </pattern>
    <!-- Проверка корректного заполнения поля для указания кода подразделения, выдавшего документ, удостоверяющий личность (12.10.2023) -->
    <pattern>
        <rule context="//identity:IdentityDoc[not(@nullFlavor)][identity:IdentityCardTypeId[@code='1']]/identity:IssueOrgCode[not(@nullFlavor)]">
            <assert test="matches(.,'^[0-9]{3}[-]{1}[0-9]{3}$')">Элемент //identity:IssueOrgCode должен иметь синтаксически корректное значение, соответствующее коду подразделения: '^[0-9]{3}[-]{1}[0-9]{3}$'.</assert>
        </rule>
    </pattern>
</schema>